package net.dgg.dggcloud.service.jrcrm.entity.orf;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName: OrderPayRecord
 * @Description: 核款
 * @author：郭伟
 * @date： 2017/11/3
 */

@Entity
@Table(name = "orf_order_pay_record")
public class OrderPayRecord  extends BaseEntity {


    /**
     *  核款编号
     */
    @Column(name="payment_no")
    private String paymentNo;
    /**
     * 订单ID
     */
    @Column(name="order_id")
    private Long orderId;

    /**
     *  生成订单ID
     */
    @Column(name="order_business_id")
    private Long orderBusinessId;

    /**
     *  生成订单编号
     */
    @Column(name="order_business_no")
    private String orderBusinessNo;

    /**
     *  渠道名称
     */
    @Column(name="trench_name")
    private String trenchName;

    /**
     *  产品名称
     */
    @Column(name="product_name")
    private String productName;

    /**
     *  放款金额
     */
    @Column(name="loans_amount")
    private Long loansAmount;

    /**
     * 后台结算金额
     */
    @Column(name = "settlement_amount")
    private Long settlementAmount;

    /**
     *  后台是否结算 1 是 0 否
     */
    @Column(name="is_settlement")
    private Integer isSettlement;

    /**
     *  内部成本
     */
    @Column(name="internal_cost")
    private Long internalCost;

    /**
     *  外部成本
     */
    @Column(name="external_cost")
    private Long externalCost;



    /**
     *  收款金额
     */
    @Column(name="amount")
    private Long amount;

    /**
     *  付款人
     */
    @Column(name="payment_name")
    private String paymentName;


    /**
     *  付款时间
     */
    @Column(name="payment_time")
    private Date paymentTime;

    /**
     *  收款类型
     */
    @Column(name="payment_type")
    private String paymentType;


    /**
     *  付款方式
     */
    @Column(name="payment_way")
    private String paymentWay;

    /**
     *  收款账户
     */
    @Column(name="payment_account")
    private String paymentAccount;


    /**
     *  收据编号
     */
    @Column(name="receipt_no")
    private String receiptNo;


    /**
     *  合同编号
     */
    @Column(name="contract_no")
    private String contractNo;

    /**
     *  业绩
     */
    @Column(name="performance")
    private Long performance;

    /**
     *  利润
     */
    @Column(name="profit")
    private Long profit;

    /**
     *  当前审核人
     */
    @Column(name="audit_user_id")
    private Long auditUserId;

    /**
     *  业绩计算时间
     */
    @Column(name="performance_time")
    private Date performanceTime;

    /**
     *  申请时间
     */
    @Column(name="apply_time")
    private Date applyTime;

    /**
     *  申请人
     */
    @Column(name="apply_user_id")
    private Long applyUserId;

    /**
     *  销售行政
     */
    @Column(name="sale_user_id")
    private Long saleUserId;

    /**
     *  核款状态 0审核通过
     */
    @Column(name="status")
    private String status;


    /**
     *  合同金额
     */
    @Column(name="receivable_amount")
    private Long receivableAmount;

    /**
     *  产品ID
     */
    @Column(name="product_id")
    private Long productId;

    /**
     *  渠道ID
     */
    @Column(name="trench_id")
    private Long trenchId;


    /**
     *  生产订单状态
     */
    @Column(name="order_business_status")
    private String orderBusinessStatus;

    /**
     * 最新驳回原因
     */
    @Column(name="reject_reason")
    private String rejectReason;

    /**
     *  最新驳回时间
     */
    @Column(name="reject_time")
    private Date rejectTime;

    /**
     *  收款类别
     */
    @Column(name="gathering_type")
    private String gatheringType;

    /**
     *  收款类别原因
     */
    @Column(name="gathering_remark")
    private String gatheringRemark;

    /**
     *  归属事业部
     */
    @Column(name="affiliation_syb")
    private String affiliationSyb;

    /**
     *  备注
     */
    @Column(name="remark")
    private String remark;

    /**
     *  是否跨业态
     */
    @Column(name="retail")
    private String retail;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAffiliationSyb() {
        return affiliationSyb;
    }

    public void setAffiliationSyb(String affiliationSyb) {
        this.affiliationSyb = affiliationSyb;
    }

    public String getGatheringType() {
        return gatheringType;
    }

    public void setGatheringType(String gatheringType) {
        this.gatheringType = gatheringType;
    }

    public String getGatheringRemark() {
        return gatheringRemark;
    }

    public void setGatheringRemark(String gatheringRemark) {
        this.gatheringRemark = gatheringRemark;
    }

    public String getOrderBusinessStatus() {
        return orderBusinessStatus;
    }

    public void setOrderBusinessStatus(String orderBusinessStatus) {
        this.orderBusinessStatus = orderBusinessStatus;
    }

    public Long getReceivableAmount() {
        return receivableAmount;
    }

    public void setReceivableAmount(Long receivableAmount) {
        this.receivableAmount = receivableAmount;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getLoansAmount() {
        return loansAmount;
    }

    public void setLoansAmount(Long loansAmount) {
        this.loansAmount = loansAmount;
    }

    public Long getSettlementAmount() {
        return settlementAmount;
    }

    public void setSettlementAmount(Long settlementAmount) {
        this.settlementAmount = settlementAmount;
    }

    public Integer getIsSettlement() {
        return isSettlement;
    }

    public void setIsSettlement(Integer isSettlement) {
        this.isSettlement = isSettlement;
    }

    public Long getInternalCost() {
        return internalCost;
    }

    public void setInternalCost(Long internalCost) {
        this.internalCost = internalCost;
    }

    public Long getExternalCost() {
        return externalCost;
    }

    public void setExternalCost(Long externalCost) {
        this.externalCost = externalCost;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public String getPaymentName() {
        return paymentName;
    }

    public void setPaymentName(String paymentName) {
        this.paymentName = paymentName;
    }

    public Date getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(Date paymentTime) {
        this.paymentTime = paymentTime;
    }

    public String getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(String paymentType) {
        this.paymentType = paymentType;
    }

    public String getPaymentWay() {
        return paymentWay;
    }

    public void setPaymentWay(String paymentWay) {
        this.paymentWay = paymentWay;
    }

    public String getPaymentAccount() {
        return paymentAccount;
    }

    public void setPaymentAccount(String paymentAccount) {
        this.paymentAccount = paymentAccount;
    }

    public String getReceiptNo() {
        return receiptNo;
    }

    public void setReceiptNo(String receiptNo) {
        this.receiptNo = receiptNo;
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    public Long getPerformance() {
        return performance;
    }

    public void setPerformance(Long performance) {
        this.performance = performance;
    }

    public Long getProfit() {
        return profit;
    }

    public void setProfit(Long profit) {
        this.profit = profit;
    }

    public Long getAuditUserId() {
        return auditUserId;
    }

    public void setAuditUserId(Long auditUserId) {
        this.auditUserId = auditUserId;
    }

    public Date getPerformanceTime() {
        return performanceTime;
    }

    public void setPerformanceTime(Date performanceTime) {
        this.performanceTime = performanceTime;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    public Long getApplyUserId() {
        return applyUserId;
    }

    public void setApplyUserId(Long applyUserId) {
        this.applyUserId = applyUserId;
    }

    public Long getSaleUserId() {
        return saleUserId;
    }

    public void setSaleUserId(Long saleUserId) {
        this.saleUserId = saleUserId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPaymentNo() {
        return paymentNo;
    }

    public void setPaymentNo(String paymentNo) {
        this.paymentNo = paymentNo;
    }


    public Long getOrderBusinessId() {
        return orderBusinessId;
    }

    public void setOrderBusinessId(Long orderBusinessId) {
        this.orderBusinessId = orderBusinessId;
    }

    public String getOrderBusinessNo() {
        return orderBusinessNo;
    }

    public void setOrderBusinessNo(String orderBusinessNo) {
        this.orderBusinessNo = orderBusinessNo;
    }

    public String getTrenchName() {
        return trenchName;
    }

    public void setTrenchName(String trenchName) {
        this.trenchName = trenchName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getTrenchId() {
        return trenchId;
    }

    public void setTrenchId(Long trenchId) {
        this.trenchId = trenchId;
    }

    public String getRejectReason() {
        return rejectReason;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }

    public Date getRejectTime() {
        return rejectTime;
    }

    public void setRejectTime(Date rejectTime) {
        this.rejectTime = rejectTime;
    }

    public String getRetail() {
        return retail;
    }

    public void setRetail(String retail) {
        this.retail = retail;
    }
}
